<?php
$id_apoteker=$_POST['id_apoteker'];
$nama=$_POST['nama'];
$username=$_POST['username'];
$pwd=$_POST['password'];
$password=sha1($pwd);
$level=$_POST['level'];
$sql=dbQuery("select * from apotekr where username='$username'");

	
	
	$update=dbQuery("update apoteker set nama_apoteker='$nama' , username='$username' , password='$password' , level='$level' where id_apoteker='$id_apoteker'")or die(mysql_error());
		if($update){
	?>
	<tr><td colspan="3">&nbsp;</td></tr>
	<tr><td colspan="3" class="judul">&#187 Konfirmasi Update Data Apoteker</td></tr>
	<tr><td colspan="3" class="jarak_garis"><hr color="#6d6a69"></hr></td></tr>
	<tr><td colspan="3" class="suskes" align="center">Selamat Anda Sukses update data Apoter</td></tr>
	<tr><td colspan="3"><div id="pagging" align="center"><a href="index_admin.php?index=manage_apoteker&cryption=<?php print $random."upn".$santra.$encode?>">[Kembali]</a></div></td></tr>
	<tr><td colspan="3">&nbsp;</td></tr>
	<tr><td colspan="3">&nbsp;</td></tr>
<?php }else{
?>
<tr><td colspan="3">&nbsp;</td></tr>
	<tr><td colspan="3" class="judul">&#187 Konfirmasi Input Data Apoteker</td></tr>
	<tr><td colspan="3" class="jarak_garis"><hr color="#6d6a69"></hr></td></tr>
	<tr><td colspan="3" class="suskes" align="center">Maaf Anda Gagal inputkan Data,coba ulangi verifikasi data yang anda inputkan</td></tr>
	<tr><td colspan="3"><div id="pagging" align="center"><a href="index_admin.php?index=input_apoteker&cryption=<?=$random."upn".$santra.$encode?>">[Kembali]</a></td></tr>
	<tr><td colspan="3">&nbsp;</td></tr>
	<tr><td colspan="3">&nbsp;</td></tr>
<?php }




?>
